package net.hserver.admin.system.queue;

import cn.hserver.core.ioc.annotation.Autowired;
import cn.hserver.core.ioc.annotation.queue.QueueHandler;
import cn.hserver.core.ioc.annotation.queue.QueueListener;
import net.hserver.admin.system.bean.OperLogEvent;
import net.hserver.admin.system.common.MyConstants;
import net.hserver.admin.system.service.OperLogService;

@QueueListener(queueName = MyConstants.LOG_EVENT)
public class LogEvent {

    @Autowired
    private OperLogService operLogService;

    @QueueHandler
    public void handleOperLogEvent(OperLogEvent operLogEvent) {
        operLogService.handleOperLogEvent(operLogEvent);
    }

}
